package cn.iocoder.yudao.module.member.controller.app.banner.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 轮播图 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class AppBannerBaseVO {

    @Schema(description = "图片地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
    @NotNull(message = "图片地址不能为空")
    private String imgUrl;

    @Schema(description = "排序", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "排序不能为空")
    private String sort;

    @Schema(description = "刷新频率", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "刷新频率不能为空")
    private String frequency;

    @Schema(description = "跳转地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
    @NotNull(message = "跳转地址不能为空")
    private String toUrl;

}
